package mvc.A;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class AAA {

    @RequestMapping(value ="/")
    public String login(){
        return "index";
    }

    @RequestMapping(value ="user/test")
    public String test(){
        System.out.println("HHH");
        return "ok";
    }
    @PostMapping(value ="login")
    public String test1(){
        System.out.println("HHHHHHHHHHHHHHHHH");
        return "ok";
    }

    @RequestMapping(value = "/testParams" ,params = {"username=zhangsan","password"})
    public String toparams(){
        return "ok";

    }

}
